package com.southminority.ethnic.controller.coures.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 课程评价响应VO
 * 
 * @author SouthMinority
 */
@Data
@Schema(description = "课程评价响应")
public class CourseEvaluationVo {

    @Schema(description = "评价ID")
    private Long id;

    @Schema(description = "课程ID")
    private Long courseId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名称")
    private String userName;

    @Schema(description = "评价分数（1-5分）")
    private Integer rating;

    @Schema(description = "评价内容")
    private String content;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
} 